import { Component } from '@angular/core';

@Component({
  selector: 'app-page-home',
  templateUrl: './page-home.component.html',
  styleUrls: ['./page-home.component.scss']
})
export class PageHomeComponent {

  PagejumpItems: any[] = [{
    routerLink: '/pipi/font_img',
    image: 'https://file-cloud.fmode.cn/E4KpGvTEto/20230808/8p1aih092407457.png',
    title: '文生图',
    explain:'输入提示词,AI帮你画'
  },
  {
    routerLink: '/pipi/img_img',
    image: 'https://file-cloud.fmode.cn/E4KpGvTEto/20230808/avl0r1092428268.png',
    title: '图生图',
    explain:'导入照片,生成多种AI绘画'
  },
  {
    routerLink: '',
    image: 'https://file-cloud.fmode.cn/E4KpGvTEto/20230808/s12uh1092414597.png',
    title: '风格模型训练',
    explain:'训练你的专属风格模型'
  },
  {
    routerLink: '/pipi/dictionary',
    image: 'https://file-cloud.fmode.cn/E4KpGvTEto/20230808/htcb2g092432199.png',
    title: '创作词库',
    explain:'中英提示词助手,帮你精准匹配风格词'
  }]

  //弹出框样式
  isVisible = false;

  showModal(): void {
    this.isVisible = true;
  }

  handleCancel(): void {
    console.log('Button cancel clicked!');
    this.isVisible = false;
  }

}
